package com.deam.imsdk.utils;

/**
 * Created by Administrator on 2018/5/9.
 */

public class MathUtil {
    /**
     * 获取随机数
     *
     * @param startStr 前置字符
     * @param length   随机数长度
     * @return
     */
    public static String getSum(String startStr, int length) {
        String sum = "";
        for (int i = 0; i < length; i++) {
            sum += "" + (int) (Math.random() * 10);
        }
        return (startStr == null ? "" : startStr) + sum;
    }
}
